package xc.src.生产者消费者案例;
//实现Runnable接口
public class Customer implements Runnable{
    private Box b;

    public Customer(Box b) {
    this.b=b;
    }
    public void run(){
         while(true) {
             b.get();
         }
    }
}
